Cassa Integrazione, Come Funziona